**** PROGRAM FILE FOR SI6: Comparison of Alternative Agency Structures ****
 
 


 * OPEN "HISTORICAL BUDGET" DATABASE CONTAINING NEW VARIABLES * 
 
use data_final.dta, clear 

**********************************************************************************************************************************************************************************************************
**********************************************************************************************************************************************************************************************************
**********************************************************************************************************************************************************************************************************
**********************************************************************************************************************************************************************************************************
**********************************************************************************************************************************************************************************************************
**********************************************************************************************************************************************************************************************************




*** DECLARE DATABASE AS A PANEL (AGENCY ID * FISCAL YEAR): 

xtset agenid fyear, yearly

*
*
*
*** DROP ALL STRUCTURALLY REFORMED AGENCIES THAT OCCURRED WITHIN THE SAMPLE PERIOD [with change date in parentheses)***


** National Board of Mediation (FY 1921-1940): agenid == 1
** Board of Conciliation (FY 1914-1923): agenid == 2
** Department of Commerce (FY 1914-1940): agenid == 10
** Department of Commerce & Labor (FY 1904-1914): agenid == 11
** Department of Labor 1 (FY 1894-1904): agenid == 13
** Department of Labor 2 (FY 1915-1940): agenid == 14
** Federal Radio (Communications) Commission (Terminated/Replaced FY 1936): agenid == 18
** Federal Power Commission (IA/IRC: FY 1937): agenid == 19


*** CREATE BINARY INDICATOR: IANBC [= 1 FOR STRUCTURALLY REFORMED AGENCIES, = 0 OTHERWISE] 

gen srdum = 1 if agenid==1 | agenid==2 | agenid==10 | agenid==11 | agenid==13 | agenid==14 | agenid==18 | agenid==19 
replace srdum = 0 if srdum ==.


*** DROP ALL INDEPENDENT AGENCIES WHICH ARE NOT BOARDS OR COMMISSION STRUCTURES ***

** Bureau of Efficiency: agenid == 4
** Farm Credit Administration: agenid == 16
** General Accounting Office: agenid == 21
** Rural Electrification Administration: agenid == 29
** Smithsonian Institution and National Museum: agenid == 31
** United States Fuel Administration: agenid == 37
** United States Housing Corporation: agenid == 38
** United States Veterans Bureau: agenid == 40


*** CREATE BINARY INDICATOR: IANBC [= 1 FOR INDEPENDENT AGENCIES THAT ARE NEITHER COMMISSIONS NOR BOARDS, = 0 OTHERWISE] 

gen ianbc = 1 if agenid==4 | agenid==16 | agenid==21 | agenid==29 | agenid==31 | agenid==37 | agenid==38 | agenid==40
replace ianbc = 0 if ianbc ==.
********************************************************************************************************************************
********************************************************************************************************************************
********************************************************************************************************************************
********************************************************************************************************************************
********************************************************************************************************************************
********************************************************************************************************************************




*** I. ESTIMATE EFFECT OF BAA REFORMS ON BUDGETARY CONTROL [BUDGETARY GROWTH AS DEPENDENT VARIABLE] ***



*** ESTIMATE EXECUTIVE BUDGET CONTROL ABADIE'S SEMI-PARAMETRIC PROPENSITY SCORE WEIGHTED ESTIMATOR OF HETEROGENEOUS AVERAGE TREATMENT EFFECTS***

absdid execbudchangetot, tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateect
*
absdid execbudchangetot, tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store ecti

lincomest _cons + executiveagency
estimate store ecte
*
*
*
absdid execbudchangereg, tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateecr
*
absdid execbudchangereg, tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store ecri

lincomest _cons + executiveagency
estimate store ecre

*
*
*
*
*** ESTIMATE CONGRESSIONAL BUDGET CONTROL USING ABADIE'S SEMI-PARAMETRIC PROPENSITY SCORE WEIGHTED ESTIMATOR OF HETEROGENEOUS AVERAGE TREATMENT EFFECTS ***

absdid congbudchangetot, tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store atecct
*
absdid congbudchangetot, tvar(bureauofbudget)  xvar(housemajorityparty  presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store ccti

lincomest _cons + executiveagency
estimate store ccte
*
*
*
absdid congbudchangereg, tvar(bureauofbudget)  xvar(housemajorityparty  presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateccr

*
absdid congbudchangereg, tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store ccri

lincomest _cons + executiveagency
estimate store ccre

*** Creating Coefficient Plots for Budget Control Models***
*** Figure 1A ***
/*coefplot (ateect, rename(_cons="All Agencies (ATE)")) ///
         (ecte, rename((1)="Executive Agencies (ATE: E)")) ///
         (ecti, keep (_cons) rename(_cons="Independent Agencies (ATE: I)")) ///
		 (ecti, drop (_cons) rename(executiveagency= "Difference (ATE: E - I)")) ///
		  ,  bylabel(Total Budget) ///
		  ||                       ///
		 (ateecr, rename(_cons="All Agencies (ATE)")) ///
         (ecre, rename((1)="Executive Agencies (ATE: E)")) ///
         (ecri, keep (_cons) rename(_cons="Independent Agencies (ATE: I)")) ///
		 (ecri, drop (_cons) rename(executiveagency= "Difference (ATE: E - I)")) ///
		  , bylabel(Regular Budget) ///
          ||, ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w) ciopts(recast(rcap)) ///
		  order ("All Agencies (ATE)" "Executive Agencies (ATE: E)" "Independent Agencies (ATE: I)" "Difference (ATE: E - I)") /// 
		  byopts(title ("Treatment Effects of BACA on Executive Budget Control", span)) 
		  
graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\gph\Figure1A.gph", replace
graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\Figure1A.png", replace

*** Figure 1B ***
coefplot (atecct, rename(_cons="All Agencies (ATE)")) ///
         (ccte, rename((1)="Executive Agencies (ATE: E)")) ///
         (ccti, keep (_cons) rename(_cons="Independent Agencies (ATE: I)")) ///
		 (ccti, drop (_cons) rename(executiveagency= "Difference (ATE: E - I)")) ///
		  ,  bylabel(Total Budget) ///
		  ||                       ///
		 (ateccr, rename(_cons="All Agencies (ATE)")) ///
         (ccre, rename((1)="Executive Agencies (ATE: E)")) ///
         (ccri, keep (_cons) rename(_cons="Independent Agencies (ATE: I)")) ///
		 (ccri, drop (_cons) rename(executiveagency= "Difference (ATE: E - I)")) ///
		  , bylabel(Regular Budget) ///
          ||, ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w) ciopts(recast(rcap)) ///
		  order ("All Agencies (ATE)" "Executive Agencies (ATE: E)" "Independent Agencies (ATE: I)" "Difference (ATE: E - I)") /// 
		  byopts(title ("Treatment Effects of BACA on Legislative Budget Control", span)) 
		  
graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\gph\Figure1B.gph", replace
graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\Figure1B.png", replace */


*** Figure 1 ***
coefplot (ateect, rename(_cons="Executive Estimates (ATE)") \ ///
			atecct, rename(_cons="Congressional Appropriations (ATE)")) ///
		 (ecte, rename((1)="Executive Estimates (ATE: E)") \ ///
			ccte, rename((1)="Congressional Appropriations (ATE: E)")) ///
		 (ecti, keep (_cons) rename(_cons="Executive Estimates (ATE: I)") \ ///
			ccti, keep (_cons) rename(_cons="Congressional Appropriations (ATE: I)")) ///
		 (ecti, drop (_cons) rename(executiveagency= "Executive Estimates (ATE: E - I)")\ ///
			ccti, drop (_cons) rename(executiveagency= "Congressional Appropriations (ATE: E - I)")) ///
		  ,  bylabel(Total Budget)  ///
		  ||                       ///
		 (ateecr, rename(_cons="Executive Estimates (ATE)")\ ///
			ateccr, rename(_cons="Congressional Appropriations (ATE)")) ///
		 (ecre, rename((1)="Executive Estimates (ATE: E)")\ ///
			ccre, rename((1)="Congressional Appropriations (ATE: E)")) ///
		 (ecri, keep (_cons) rename(_cons="Executive Estimates (ATE: I)")\ ///
			ccri, keep (_cons) rename(_cons="Congressional Appropriations (ATE: I)")) ///
		 (ecri, drop (_cons) rename(executiveagency= "Executive Estimates (ATE: E - I)")\ ///
			ccri, drop (_cons) rename(executiveagency= "Congressional Appropriations (ATE: E - I)")) ///
		  , bylabel(Regular Budget)   ///
		  || ,                        ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w) ///
		  ciopts(recast(rcap)) nooffsets msize(medsmall) ///
		  order("Executive Estimates (ATE)""Congressional Appropriations (ATE)". ///
		  "Executive Estimates (ATE: E)" "Congressional Appropriations (ATE: E)". ///
		  "Executive Estimates (ATE: I)" "Congressional Appropriations (ATE: I)". ///
		  "Executive Estimates (ATE: E - I)" "Congressional Appropriations (ATE: E - I)") ///
		  byopts(note("Point Estimates and Corresponding 95% Confidence Intervals", j(right) place(seast) size(vsmall)) ///
		   title("Figure 1. 1921 Budget and Accounting Act Average Treatment Effects on" "Executive and Legislative Budget Control", size(med)span)) 
		  
*graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\post_PMRA\gph\Figure1.gph", replace
*graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\post_PMRA\Figure1.png", replace
		  
		  
********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
		  
		  
		  		  
*** II. ESTIMATE EFFECTS OF BAA REFORMS ON BUDGETARY STABILITY [IN NATURAL LOGARITHMS AS DEPENDENT VARIABLE] ***



*** ESTIMATE EXECUTIVE BUDGET STABILITY USING ABADIE'S SEMI-PARAMETRIC PROPENSITY SCORE WEIGHTED ESTIMATOR OF HETEROGENEOUS AVERAGE TREATMENT EFFECTS ***

absdid lnexecbudstabletot, tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateest
*
absdid lnexecbudstabletot, tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage)  yxvar(executiveagency) sle
estimate store esti

lincomest _cons + executiveagency
estimate store este

*
*
*
absdid lnexecbudstablereg, tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateesr
*
absdid lnexecbudstablereg, tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage)  yxvar(executiveagency) sle
estimate store esri

lincomest _cons + executiveagency
estimate store esre

*
*
*

*** ESTIMATE CONGRESSIONAL BUDGET STABILITY USING ABADIE'S SEMI-PARAMETRIC PROPENSITY SCORE WEIGHTED ESTIMATOR OF HETEROGENEOUS AVERAGE TREATMENT EFFECTS ***

absdid lncongbudstabletot, tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store atecst
*
absdid lncongbudstabletot, tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage)  yxvar(executiveagency) sle
estimate store csti

lincomest _cons + executiveagency
estimate store cste
*
*
*
absdid lncongbudstablereg, tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store atecsr
*
absdid lncongbudstablereg, tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage)  yxvar(executiveagency) sle
estimate store csri

lincomest _cons + executiveagency
estimate store csre

*** Creating Coefficient Plots for Budget Stability Models***
*** Figure 2A ***
/* coefplot (ateest, rename(_cons="All Agencies (ATE)")) ///
         (este, rename((1)="Executive Agencies (ATE: E)")) ///
         (esti, keep (_cons) rename(_cons="Independent Agencies (ATE: I)")) ///
		 (esti, drop (_cons) rename(executiveagency= "Difference (ATE: E - I)")) ///
		  ,  bylabel(Total Budget) ///
		  ||                       ///
		 (ateesr, rename(_cons="All Agencies (ATE)")) ///
         (esre, rename((1)="Executive Agencies (ATE: E)")) ///
         (esri, keep (_cons) rename(_cons="Independent Agencies (ATE: I)")) ///
		 (esri, drop (_cons) rename(executiveagency= "Difference (ATE: E - I)")) ///
		  , bylabel(Regular Budget) ///
          ||, ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w) ciopts(recast(rcap)) ///
		  order ("All Agencies (ATE)" "Executive Agencies (ATE: E)" "Independent Agencies (ATE: I)" "Difference (ATE: E - I)") /// 
		  byopts(title ("Treatment Effects of BACA on Executive Budget Stability", span)) 
		  
graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\gph\Figure2A.gph", replace
graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\Figure2A.png", replace

*** Figure 2B ***
coefplot (atecst, rename(_cons="All Agencies (ATE)")) ///
         (cste, rename((1)="Executive Agencies (ATE: E)")) ///
         (csti, keep (_cons) rename(_cons="Independent Agencies (ATE: I)")) ///
		 (csti, drop (_cons) rename(executiveagency= "Difference (ATE: E - I)")) ///
		  ,  bylabel(Total Budget) ///
		  ||                       ///
		 (atecsr, rename(_cons="All Agencies (ATE)")) ///
         (csre, rename((1)="Executive Agencies (ATE: E)")) ///
         (csri, keep (_cons) rename(_cons="Independent Agencies (ATE: I)")) ///
		 (csri, drop (_cons) rename(executiveagency= "Difference (ATE: E - I)")) ///
		  , bylabel(Regular Budget) ///
          ||, ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w) ciopts(recast(rcap)) ///
		  order ("All Agencies (ATE)" "Executive Agencies (ATE: E)" "Independent Agencies (ATE: I)" "Difference (ATE: E - I)") /// 
		  byopts(title ("Treatment Effects of BACA on Legislative Budget Stability", span)) 
		  
graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\gph\Figure2B.gph", replace
graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\Figure2B.png", replace */

*** Figure 2 ***
coefplot (ateest, rename(_cons="Executive Estimates (ATE)")\ ///
			atecst, rename(_cons="Congressional Appropriations (ATE)")) ///
		 (este, rename((1)="Executive Estimates (ATE: E)")\ ///
				cste, rename((1)="Congressional Appropriations (ATE: E)")) ///
		 (esti, keep (_cons) rename(_cons="Executive Estimates (ATE: I)")\ ///
			csti, keep (_cons) rename(_cons="Congressional Appropriations (ATE: I)")) ///
		 (esti, drop (_cons) rename(executiveagency= "Executive Estimates (ATE: E - I)")\ ///
			csti, drop (_cons) rename(executiveagency= "Congressional Appropriations (ATE: E - I)")) ///
		  ,  bylabel(Total Budget) ///
		  ||                       ///
		 (ateesr, rename(_cons="Executive Estimates (ATE)")\ ///
			atecsr, rename(_cons="Congressional Appropriations (ATE)")) ///
		 (esre, rename((1)="Executive Estimates (ATE: E)")\ ///
			csre, rename((1)="Congressional Appropriations (ATE: E)")) ///
		 (esri, keep (_cons) rename(_cons="Executive Estimates (ATE: I)")\ ///
			csri, keep (_cons) rename(_cons="Congressional Appropriations (ATE: I)")) ///
		 (esri, drop (_cons) rename(executiveagency= "Executive Estimates (ATE: E - I)")\ ///
			csri, drop (_cons) rename(executiveagency= "Congressional Appropriations (ATE: E - I)")) ///
		  , bylabel(Regular Budget) ///
          ||, ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w)  ///
		  ciopts(recast(rcap)) nooffsets msize(medsmall)                      ///
		  order("Executive Estimates (ATE)""Congressional Appropriations (ATE)". ///
		  "Executive Estimates (ATE: E)" "Congressional Appropriations (ATE: E)". ///
		  "Executive Estimates (ATE: I)" "Congressional Appropriations (ATE: I)". ///
		  "Executive Estimates (ATE: E - I)" "Congressional Appropriations (ATE: E - I)") ///
		  byopts(note("Point Estimates and Corresponding 95% Confidence Intervals", j(right) place(seast) size(vsmall)) ///
		  title ("Figure 2. 1921 Budget and Accounting Act Average Treatment Effects on" "Executive and Legislative Budget Stability", size(med)span)) 
		  
*graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\post_PMRA\gph\Figure2.gph", replace
*graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\post_PMRA\Figure2.png", replace


********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
		  
		  

*** III. ESTIMATE EFFECTS OF BAA REFORMS ON EXECUTIVE-LEGISLATIVE BUDGETARY COHERENCE IN NATURAL LOGARITHMS (+1) AS DEPENDENT VARIABLE ***


*** ESTIMATE EXECUTIVE-CONGRESSIONAL BUDGET COHERENCE USING ABADIE'S SEMI-PARAMETRIC PROPENSITY SCORE WEIGHTED ESTIMATOR OF HETEROGENEOUS AVERAGE TREATMENT EFFECTS  ***

absdid ln1execbudcoherencetot, tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) sle 
estimate store atebct
*
absdid ln1execbudcoherencetot, tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store bcti

lincomest _cons + executiveagency
estimate store bcte
*
*
*
absdid ln1execbudcoherencereg, tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store atebcr
*
absdid ln1execbudcoherencereg, tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store bcri

lincomest _cons + executiveagency
estimate store bcre
*
*
*
*** Creating Coefficient Plots for Budget Coherence Models***
*** Figure 3 ***
coefplot (atebct, rename(_cons="ATE: All Agencies")) ///
		 (bcte, rename((1)="ATE: Executive Agencies")) ///
		 (bcti, keep (_cons) rename(_cons="ATE: Independent Agencies")) ///
		 (bcti, drop (_cons) rename(executiveagency= "ATE: E - I")) ///
		  ,  bylabel(Total Budget) ///
		  ||                       ///
		 (atebcr, rename(_cons="ATE: All Agencies")) ///
		 (bcre, rename((1)="ATE: Executive Agencies")) ///
		 (bcri, keep (_cons) rename(_cons="ATE: Independent Agencies")) ///
		 (bcri, drop (_cons) rename(executiveagency= "ATE: E - I")) ///
		  , bylabel(Regular Budget) ///
          ||, ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w) ciopts(recast(rcap)) ///
		  nooffsets msize(medsmall) ///
		  byopts(note("Point Estimates and Corresponding 95% Confidence Intervals", j(right) place(seast) size(vsmall)) ///
		  title ("Figure 3. 1921 Budget and Accounting Act Average Treatment Effects on" "Executive-Legislative Budget Coherence", size(med)span)) 
		  
*graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\post_PMRA\gph\Figure3.gph", replace
*graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\post_PMRA\Figure3.png", replace


********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
		


*** IV. ESTIMATE EFFECTS OF BAA REFORMS ON BUDGETARY CONTROL [BUDGETARY GROWTH AS DEPENDENT VARIABLE] ***



*** ESTIMATE EXECUTIVE BUDGET CONTROL USING Sample of Boards and Commissions ***

absdid execbudchangetot if ianbc!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability ///
senatemajoritypartystability agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) sle
*
*
estimate store ateectt
*
*
absdid execbudchangetot if ianbc!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
*
estimate store ectit

lincomest _cons + executiveagency
estimate store ectet
*
*
*
absdid execbudchangereg if ianbc!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateecrt
*
absdid execbudchangereg if ianbc!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
*
estimate store ecrit

lincomest _cons + executiveagency
estimate store ecret

*
*
*
*
*** ESTIMATE CONGRESSIONAL BUDGET CONTROL USING SAMPLE of Boards and Commissions***

absdid congbudchangetot if ianbc!=1, ///
tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle
*
estimate store atecctt

absdid congbudchangetot  if ianbc!=1, ///
tvar(bureauofbudget)   xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
*
estimate store cctit

lincomest _cons + executiveagency
estimate store cctet
*
*
*
absdid congbudchangereg if ianbc!=1, ///
tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateccrt
*

*
absdid congbudchangereg  if ianbc!=1, ///
tvar(bureauofbudget)   xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
*
estimate store ccrit

lincomest _cons + executiveagency
estimate store ccret


********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
		 
		 

*** V. ESTIMATE EFFECTS OF BAA REFORMS ON BUDGETARY STABILITY IN NATURAL LOGARITHMS AS DEPENDENT VARIABLE ***


*** ESTIMATE EXECUTIVE BUDGET STABILITY USING SAMPLE of Boards and Commissions***

absdid lnexecbudstabletot if ianbc!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability  realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateestt
*
*
absdid lnexecbudstabletot  if ianbc!=1, ///
tvar(bureauofbudget)   xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability  realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
*
estimate store estit

lincomest _cons + executiveagency
estimate store estet

*
*
*
absdid lnexecbudstablereg if ianbc!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability  realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateesrt
*
*
absdid lnexecbudstablereg  if ianbc!=1, ///
tvar(bureauofbudget)   xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability  realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
*
estimate store esrit

lincomest _cons + executiveagency
estimate store esret

*
*
*

*** ESTIMATE CONGRESSIONAL BUDGET STABILITY USING SAMPLE of Boards and Commissions***

absdid lncongbudstabletot if ianbc!=1, ///
tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store atecstt
*
absdid lncongbudstabletot  if ianbc!=1, ///
tvar(bureauofbudget)   xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
*
estimate store cstit

lincomest _cons + executiveagency
estimate store cstet
*
*
*
absdid lncongbudstablereg if ianbc!=1, ///
tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store atecsrt
*
absdid lncongbudstablereg  if ianbc!=1, ///
tvar(bureauofbudget)   xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store csrit

lincomest _cons + executiveagency
estimate store csret



*** VI. ESTIMATE EFFECTS OF BAA REFORMS ON BUDGETARY COHERENCE IN NATURAL LOGARITHMS (+1) AS DEPENDENT VARIABLE ***


*** ESTIMATE EXECUTIVE-CONGRESSIONAL BUDGET COHERENCE USING SAMPLE of Boards and Commissions ***

absdid ln1execbudcoherencetot if ianbc!=1, ///
tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) sle 
estimate store atebctt
*
absdid ln1execbudcoherencetot if ianbc!=1, ///
tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store bctit

lincomest _cons + executiveagency
estimate store bctet
*
*
*
absdid ln1execbudcoherencereg if ianbc!=1, ///
tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) sle 
estimate store atebcrt
*
absdid ln1execbudcoherencereg if ianbc!=1, ///
tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store bcrit

lincomest _cons + executiveagency
estimate store bcret
*
*
*

********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
		 
		 

*** VII. ESTIMATE EFFECTS OF BAA REFORMS ON BUDGETARY CONTROL [USING BUDGETARY GROWTH AS DEPENDENT VARIABLE] ***



*** ESTIMATE EXECUTIVE BUDGET CONTROL USING SAMPLE EXCLUDING Structurally Reformed Agencies***

absdid execbudchangetot if srdum!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateectp
*
*
absdid execbudchangetot if srdum!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
*
estimate store ectip

lincomest _cons + executiveagency
estimate store ectep
*
*
*
absdid execbudchangereg if srdum!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateecrp
*
*
absdid execbudchangereg if srdum!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store ecrip

lincomest _cons + executiveagency
estimate store ecrep

*
*
*
*
*** ESTIMATE CONGRESSIONAL BUDGET CONTROL USING SAMPLE EXCLUDING Structurally Reformed Agencies***

absdid congbudchangetot if srdum!=1, ///
tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store atecctp
*
*
absdid congbudchangetot  if srdum!=1, ///
tvar(bureauofbudget)   xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
*
estimate store cctip

lincomest _cons + executiveagency
estimate store cctep
*
*
*
absdid congbudchangereg if srdum!=1, ///
tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateccrp
*

*
absdid congbudchangereg  if srdum!=1, ///
tvar(bureauofbudget)   xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle

estimate store ccrip

lincomest _cons + executiveagency
estimate store ccrep

*** Creating Appendix Plots for Budget Control Models ***
*** Figure SI-6A: Executive Budget Control Models: Comparison of Alternative Agency Structures***
coefplot (ateect, rename(_cons="ATE (Full Sample)") \ ///
			ateectt, rename(_cons="ATE (Dropping Non-Board & Commissions)") \ ///
			ateectp, rename(_cons="ATE (Dropping Structurally Reformed Agencies)")) ///
         (ecte, rename((1)="ATE: E (Full Sample)") \ ///
			ectet, rename((1)="ATE: E (Dropping Non-Board & Commissions)")\  ///
			ectep, rename((1)="ATE: E (Dropping Structurally Reformed Agencies)")) ///
         (ecti, drop(executiveagency) rename(_cons="ATE: I (Full Sample)") \ ///
			ectit, drop(executiveagency) rename(_cons="ATE: I (Dropping Non-Board & Commissions)") \  ///
			ectip, drop(executiveagency) rename(_cons="ATE: I (Dropping Structurally Reformed Agencies)")) ///
		  ,  bylabel(Total Budget) ///
		  ||                       ///
		 (ateecr, rename(_cons="ATE (Full Sample)") \ ///
			ateecrt, rename(_cons="ATE (Dropping Non-Board & Commissions)") \ ///
			ateecrp, rename(_cons="ATE (Dropping Structurally Reformed Agencies)")) ///
         (ecre, rename((1)="ATE: E (Full Sample)") \ ///
			ecret, rename((1)="ATE: E (Dropping Non-Board & Commissions)") \ ///
			ecrep, rename((1)="ATE: E (Dropping Structurally Reformed Agencies)")) ///
         (ecri, drop(executiveagency) rename(_cons="ATE: I (Full Sample)") \ ///
			ecrit, drop(executiveagency) rename(_cons="ATE: I (Dropping Non-Board & Commissions)") \ ///
			ecrip, drop(executiveagency) rename(_cons="ATE: I (Dropping Structurally Reformed Agencies)")) ///
		  ,  bylabel(Regular Budget) ///
		  ||,                        ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w) ciopts(recast(rcap)) ///
		  nooffsets msize(medsmall) ///
		  order("ATE (Full Sample)" "ATE (Dropping Non-Board & Commissions)" "ATE (Dropping Structurally Reformed Agencies)" . ///
                "ATE: E (Full Sample)" "ATE: E (Dropping Non-Board & Commissions)" "ATE: E (Dropping Structurally Reformed Agencies)" . ///
                "ATE: I (Full Sample)" "ATE: I (Dropping Non-Board & Commissions)" "ATE: I (Dropping Structurally Reformed Agencies)" ) ///
		  byopts(note("Point Estimates and Corresponding 95% Confidence Intervals", j(right) place(seast) size(vsmall)) ///
		  title ("Figure SI-6A. 1921 Budget and Accounting Act Average Treatment Effects on " ///
		  "Executive Budget Control: Comparison of Alternative Agency Structures", size (med)span)) 
		  
graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\Governance\gph\Figure SI-6A.gph", replace
graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\Governance\Figure SI-6A.png", replace		  

*** Figure SI-6B: Legislative Budget Control Models: Comparison of Alternative Agency Structures***
coefplot (atecct, rename(_cons="ATE (Full Sample)")\ ///
			atecctt, rename(_cons="ATE (Dropping Non-Board & Commissions)")\ ///
		 	atecctp, rename(_cons="ATE (Dropping Structurally Reformed Agencies)")) ///
         (ccte, rename((1)="ATE: E (Full Sample)")\ ///
			cctet, rename((1)="ATE: E (Dropping Non-Board & Commissions)")\ ///
			cctep, rename((1)="ATE: E (Dropping Structurally Reformed Agencies)")) ///
         (ccti, drop(executiveagency) rename(_cons="ATE: I (Full Sample)")\ ///
			cctit, drop(executiveagency) rename(_cons="ATE: I (Dropping Non-Board & Commissions)")\ ///
			cctip, drop(executiveagency) rename(_cons="ATE: I (Dropping Structurally Reformed Agencies)")) ///
		  ,  bylabel(Total Budget) ///
		  ||                       ///
		 (ateccr, rename(_cons="ATE (Full Sample)")\ ///
			ateccrt, rename(_cons="ATE (Dropping Non-Board & Commissions)")\ ///
			ateccrp, rename(_cons="ATE (Dropping Structurally Reformed Agencies)")) ///
         (ccre, rename((1)="ATE: E (Full Sample)")\ ///
			ccret, rename((1)="ATE: E (Dropping Non-Board & Commissions)")\ ///
			ccrep, rename((1)="ATE: E (Dropping Structurally Reformed Agencies)")) ///
         (ccri, drop(executiveagency) rename(_cons="ATE: I (Full Sample)")\ ///
			ccrit, drop(executiveagency) rename(_cons="ATE: I (Dropping Non-Board & Commissions)")\ ///
			ccrip, drop(executiveagency) rename(_cons="ATE: I (Dropping Structurally Reformed Agencies)")) ///
		  ,  bylabel(Regular Budget) ///
		  ||,                        ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w) ciopts(recast(rcap)) ///
		  nooffsets msize(medsmall) ///
		  order("ATE (Full Sample)" "ATE (Dropping Non-Board & Commissions)" "ATE (Dropping Structurally Reformed Agencies)" . ///
                "ATE: E (Full Sample)" "ATE: E (Dropping Non-Board & Commissions)" "ATE: E (Dropping Structurally Reformed Agencies)" . ///
                "ATE: I (Full Sample)" "ATE: I (Dropping Non-Board & Commissions)" "ATE: I (Dropping Structurally Reformed Agencies)" ) ///
		  byopts(note("Point Estimates and Corresponding 95% Confidence Intervals", j(right) place(seast) size(vsmall)) ///
		  title ("Figure SI-6B. 1921 Budget and Accounting Act Average Treatment Effects on " ///
		  "Legislative Budget Control: Comparison of Alternative Agency Structures", size (med)span)) 
		  
graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\Governance\gph\Figure SI-6B.gph", replace
graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\Governance\Figure SI-6B.png", replace	


********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
		 


*** VIII. ESTIMATE EFFECTS OF BAA REFORMS ON BUDGETARY STABILITY IN NATURAL LOGARITHMS AS DEPENDENT VARIABLE ***



*** ESTIMATE EXECUTIVE BUDGET STABILITY USING SAMPLE EXCLUDING Structurally Reformed Agencies***

absdid lnexecbudstabletot if srdum!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability  realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateestp
*
*
absdid lnexecbudstabletot  if srdum!=1, ///
tvar(bureauofbudget)   xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability  realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle 
*
estimate store estip

lincomest _cons + executiveagency
estimate store estep

*
*
*
absdid lnexecbudstablereg if srdum!=1, ///
tvar(bureauofbudget)  xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability  realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store ateesrp
*
*
absdid lnexecbudstablereg  if srdum!=1, ///
tvar(bureauofbudget)   xvar(presidentparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
agencyheadstability  realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
*
estimate store esrip

lincomest _cons + executiveagency
estimate store esrep

*
*
*

*** ESTIMATE CONGRESSIONAL BUDGET STABILITY USING SAMPLE EXCLUDING Structurally Reformed Agencies***

absdid lncongbudstabletot if srdum!=1, ///
tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle
estimate store atecstp
*
absdid lncongbudstabletot  if srdum!=1, ///
tvar(bureauofbudget)   xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store cstip

lincomest _cons + executiveagency
estimate store cstep
*
*
*
absdid lncongbudstablereg if srdum!=1, ///
tvar(bureauofbudget)  xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) sle

estimate store atecsrp
*
absdid lncongbudstablereg  if srdum!=1, ///
tvar(bureauofbudget)   xvar(housemajorityparty presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
appropcommchairstabilityest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store csrip

lincomest _cons + executiveagency
estimate store csrep

*** Creating Appendix Plots for Budget Stability Models***
*** Figure SI-6C: Executive Budget Stability Models: Comparison of Alternative Agency Structures***
coefplot (ateest, rename(_cons="ATE (Full Sample)")\ ///
			ateestt, rename(_cons="ATE (Dropping Non-Board & Commissions)")\ ///
			ateestp, rename(_cons="ATE (Dropping Structurally Reformed Agencies)")) ///
         (este, rename((1)="ATE: E (Full Sample)")\ ///
			estet, rename((1)="ATE: E (Dropping Non-Board & Commissions)")\ ///
			estep, rename((1)="ATE: E (Dropping Structurally Reformed Agencies)")) ///
         (esti, drop(executiveagency) rename(_cons="ATE: I (Full Sample)")\ ///
			estit, drop(executiveagency) rename(_cons="ATE: I (Dropping Non-Board & Commissions)")\ ///
			estip, drop(executiveagency) rename(_cons="ATE: I (Dropping Structurally Reformed Agencies)")) ///
		  ,  bylabel(Total Budget) ///
		  ||                       ///
		 (ateesr, rename(_cons="ATE (Full Sample)")\ ///
			ateesrt, rename(_cons="ATE (Dropping Non-Board & Commissions)")\ ///
			ateesrp, rename(_cons="ATE (Dropping Structurally Reformed Agencies)")) ///
         (esre, rename((1)="ATE: E (Full Sample)")\ ///
			esret, rename((1)="ATE: E (Dropping Non-Board & Commissions)")\ ///
			esrep, rename((1)="ATE: E (Dropping Structurally Reformed Agencies)")) ///
         (esri, drop(executiveagency) rename(_cons="ATE: I (Full Sample)")\ ///
			esrit, drop(executiveagency) rename(_cons="ATE: I (Dropping Non-Board & Commissions)")\ ///
			esrip, drop(executiveagency) rename(_cons="ATE: I (Dropping Structurally Reformed Agencies)")) ///
		  ,  bylabel(Regular Budget) ///
		  ||,                        ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w) ciopts(recast(rcap)) ///
		  nooffsets msize(medsmall) ///
		  order("ATE (Full Sample)" "ATE (Dropping Non-Board & Commissions)" "ATE (Dropping Structurally Reformed Agencies)" . ///
                "ATE: E (Full Sample)" "ATE: E (Dropping Non-Board & Commissions)" "ATE: E (Dropping Structurally Reformed Agencies)" . ///
                "ATE: I (Full Sample)" "ATE: I (Dropping Non-Board & Commissions)" "ATE: I (Dropping Structurally Reformed Agencies)" ) ///
		  byopts(note("Point Estimates and Corresponding 95% Confidence Intervals", j(right) place(seast) size(vsmall)) ///
		  title ("Figure SI-6C. 1921 Budget and Accounting Act Average Treatment Effects on " ///
		  "Executive Budget Stability: Comparison of Alternative Agency Structures", size (med)span)) 
		  
graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\Governance\gph\Figure SI-6C.gph", replace
graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\Governance\Figure SI-6C.png", replace		  

*** Figure SI-6D: Legislative Budget Stability Models: Comparison of Alternative Propensity Weighting Schemes***
coefplot (atecst, rename(_cons="ATE (Full Sample)")\ ///
			atecstt, rename(_cons="ATE (Dropping Non-Board & Commissions)")\ ///
			atecstp, rename(_cons="ATE (Dropping Structurally Reformed Agencies)")) ///
         (cste, rename((1)="ATE: E (Full Sample)")\ ///
			cstet, rename((1)="ATE: E (Dropping Non-Board & Commissions)")\ ///
			cstep, rename((1)="ATE: E (Dropping Structurally Reformed Agencies)")) ///
         (csti, drop(executiveagency) rename(_cons="ATE: I (Full Sample)")\ ///
			cstit, drop(executiveagency) rename(_cons="ATE: I (Dropping Non-Board & Commissions)")\ ///
			cstip, drop(executiveagency) rename(_cons="ATE: I (Dropping Structurally Reformed Agencies)")) ///
		  ,  bylabel(Total Budget) ///
		  ||                       ///
		 (atecsr, rename(_cons="ATE (Full Sample)")\ ///
			atecsrt, rename(_cons="ATE (Dropping Non-Board & Commissions)")\ ///
			atecsrp, rename(_cons="ATE (Dropping Structurally Reformed Agencies)")) ///
         (csre, rename((1)="ATE: E (Full Sample)")\ ///
			csret, rename((1)="ATE: E (Dropping Non-Board & Commissions)")\ ///
			csrep, rename((1)="ATE: E (Dropping Structurally Reformed Agencies)")) ///
         (csri, drop(executiveagency) rename(_cons="ATE: I (Full Sample)")\ ///
			csrit, drop(executiveagency) rename(_cons="ATE: I (Dropping Non-Board & Commissions)")\ ///
			csrip, drop(executiveagency) rename(_cons="ATE: I (Dropping Structurally Reformed Agencies)")) ///
		  ,  bylabel(Regular Budget) ///
		  ||,                        ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w) ciopts(recast(rcap)) ///
		  nooffsets msize(medsmall) ///
		  order("ATE (Full Sample)" "ATE (Dropping Non-Board & Commissions)" "ATE (Dropping Structurally Reformed Agencies)" . ///
                "ATE: E (Full Sample)" "ATE: E (Dropping Non-Board & Commissions)" "ATE: E (Dropping Structurally Reformed Agencies)" . ///
                "ATE: I (Full Sample)" "ATE: I (Dropping Non-Board & Commissions)" "ATE: I (Dropping Structurally Reformed Agencies)" ) ///
		  byopts(note("Point Estimates and Corresponding 95% Confidence Intervals", j(right) place(seast) size(vsmall)) ///
		  title ("Figure SI-6D. 1921 Budget and Accounting Act Average Treatment Effects on " ///
		  "Legislative Budget Stability: Comparison of Alternative Agency Structures", size (med)span)) 
		  
graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\Governance\gph\Figure SI-6D.gph", replace
graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\Governance\Figure SI-6D.png", replace	


********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
		 
		 
		 
*** IX. ESTIMATE EFFECTS OF BAA REFORMS ON EXECUTIVE-LEGISLATIVE BUDGETARY COHERENCE IN NATURAL LOGARITHMS (+1) AS DEPENDENT VARIABLE ***


*** ESTIMATE EXECUTIVE-CONGRESSIONAL BUDGET COHERENCE USING SAMPLE EXCLUDING Structurally Reformed Agencies ***

absdid ln1execbudcoherencetot if srdum!=1, ///
tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) sle  
estimate store atebctp
*
absdid ln1execbudcoherencetot if srdum!=1, ///
tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store bctip

lincomest _cons + executiveagency
estimate store bctep
*
*
*
absdid ln1execbudcoherencereg if srdum!=1, ///
tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) sle  
estimate store atebcrp
*
absdid ln1execbudcoherencereg if srdum!=1, ///
tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store bcrip

lincomest _cons + executiveagency
estimate store bcrep
*
*
*
*** Figure SI-6E: Budget Coherence Models: Comparison of Alternative Agency Structures***
coefplot (atebct, rename(_cons="ATE (Full Sample)")\ ///
			atebctt, rename(_cons="ATE (Dropping Non-Board & Commissions)")\ ///
			atebctp, rename(_cons="ATE (Dropping Structurally Reformed Agencies)")) ///
         (bcte, rename((1)="ATE: E (Full Sample)")\ ///
			bctet, rename((1)="ATE: E (Dropping Non-Board & Commissions)")\ ///
			bctep, rename((1)="ATE: E (Dropping Structurally Reformed Agencies)")) ///
         (bcti, drop(executiveagency) rename(_cons="ATE: I (Full Sample)")\ ///
			bctit, drop(executiveagency) rename(_cons="ATE: I (Dropping Non-Board & Commissions)")\ ///
			bctip, drop(executiveagency) rename(_cons="ATE: I (Dropping Structurally Reformed Agencies)")) ///
		  ,  bylabel(Total Budget) ///
		  ||                       ///
		 (atebcr, rename(_cons="ATE (Full Sample)")\ ///
			atebcrt, rename(_cons="ATE (Dropping Non-Board & Commissions)")\ ///
			atebcrp, rename(_cons="ATE (Dropping Structurally Reformed Agencies)")) ///
         (bcre, rename((1)="ATE: E (Full Sample)")\ ///
			bcret, rename((1)="ATE: E (Dropping Non-Board & Commissions)")\ ///
			bcrep, rename((1)="ATE: E (Dropping Structurally Reformed Agencies)")) ///
         (bcri, drop(executiveagency) rename(_cons="ATE: I (Full Sample)")\ ///
			bcrit, drop(executiveagency) rename(_cons="ATE: I (Dropping Non-Board & Commissions)")\ ///
			bcrip, drop(executiveagency) rename(_cons="ATE: I (Dropping Structurally Reformed Agencies)")) ///
		  ,  bylabel(Regular Budget) ///
		  ||,                        ///
          nokey xline (0, lcolor(black) lwidth(thin) lpattern(dash)) grid(w) ciopts(recast(rcap)) ///
		  nooffsets msize(medsmall) ///
		  order("ATE (Full Sample)" "ATE (Dropping Non-Board & Commissions)" "ATE (Dropping Structurally Reformed Agencies)" . ///
                "ATE: E (Full Sample)" "ATE: E (Dropping Non-Board & Commissions)" "ATE: E (Dropping Structurally Reformed Agencies)" . ///
                "ATE: I (Full Sample)" "ATE: I (Dropping Non-Board & Commissions)" "ATE: I (Dropping Structurally Reformed Agencies)" ) ///
		  byopts(note("Point Estimates and Corresponding 95% Confidence Intervals", j(right) place(seast) size(vsmall)) ///
		  title ("Figure SI-6E. 1921 Budget and Accounting Act Average Treatment Effects on " ///
		  "Budget Coherence: Comparison of Alternative Agency Structures", size (med)span)) 
		  
graph save "C:\Users\Jin\Dropbox\BACA paper\Graphs\Governance\gph\Figure SI-6E.gph", replace
graph export "C:\Users\Jin\Dropbox\BACA paper\Graphs\Governance\Figure SI-6E.png", replace	


********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  
********************************************************************************************************************************************************************
********************************************************************************************************************************************************************		  

		 


